<template>
	<view>
		<uni-card title="人员资料" extra="额外信息" v-for="(ents,index) in list" :key="index" >
			<uni-card >
			<view>
			姓名：<text>{{ents.name}}</text>
			</view>
			</uni-card>
			<uni-card>
			<view>
			年龄：<text>{{ents.age}}</text>
			</view>
			</uni-card>
			<uni-card>
			<view>
			性别：<text v-show="ents.sex=1">男</text>
			<text v-show="ents.sex=0">女</text>
			</view>
			</uni-card>
			<uni-card>
			<view>
			手机号码：<text>{{ents.phone}}</text>
			</view>
			</uni-card>
			<uni-card>
			<view>
			邮箱地址：<text>{{ents.email}}</text>
			</view>
			</uni-card>
			<uni-card>
			<view>
			公司：<text>{{ents.departmentVo.departName}}</text>
			</view>
			</uni-card>
			<uni-card>
			部门：<text>{{ents.enterpriseVo.entername}}</text>
			</uni-card>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				eid:'',
				list:[],
				
			}
		},
		onLoad(res) {
			this.eid=res.eid
			this.getAsb()
		},
		methods: {
			getAsb(){
				console.log(this.eid)
				uni.request({
					url:'http://localhost:8003/userproject/go/listPeo?eid='+this.eid,
					method:'POST',
					success:(res)=> {
						this.list=res.data.data.list
						console.log(this.list)
					}
				})
			}
		}
	}
</script>

<style>

</style>
